﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace PERenaud
{
    public class Friend : INotifyPropertyChanged
    {
        public Friend()
        {
        }

        public Friend(string friendName, string friendNumber, string friendImage)
        {
            this.friendName = friendName;
            this.friendNumber = friendNumber;
            this.friendImage = friendImage;
        }

        private string friendName;

        public string FriendName
        {
            get { return friendName; }
            set { friendName = value; OnPropertyChanged("FriendName"); }
        }

        private string friendNumber;

        public string FriendNumber
        {
            get { return friendNumber; }
            set { friendNumber = value; OnPropertyChanged("FriendNumber"); }
        }

        private string friendImage;

        public string FriendImage
        {
            get { return friendImage; }
            set { friendImage = value; OnPropertyChanged("FriendImage"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged(string name)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(name));
            }
        }
    }
}
